// 课程模块
import React, { Component } from 'react'
import { Grid } from 'antd-mobile'
import '../../assets/css/home/k-subjects.less'
import axios from 'axios'
export default class KSubjects extends Component {
    // 晚上如果把这个数组变成接口，想想要如果实现
    state = {
        data: []
    }
    render() {
        return (
            <div>
                <Grid hasLine={false} data={this.state.data} activeStyle={false} />
            </div>
        )
    }
    async componentDidMount() {
        const { data } = await axios.get('/data/subjects.json')
        // console.log(result);
        this.setState({
            data
        })
    }
}
